<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page  import="friendsearch.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <head>
    <title>Global Distance</title>
  </head>
  
  <body>
  <div>
  <%
  	Coordinate p=(Coordinate)request.getAttribute("p1");
  	Coordinate q=(Coordinate)request.getAttribute("p2");
  	Double distance=(Double)request.getAttribute("distance");
  	if(distance!=null) {
  		%>
  		This distance between point <%=p %> and <%=q %> is about <%=distance %> Km.
  		<%
  	}
   %>
  </div>
  <div>
    <form action="Calculate" method="post">
    E:<input type="text" name="plo1"> N:<input type="text" name="pla1"> <br>
    E':<input type="text" name="plo2"> N':<input type="text" name="pla2">
    <input type="submit" value="Calculate">
    </form>
   </div>
  </body>
</html>
